﻿@{
    ViewBag.Title = "Thêm mới thanh toán";
    Layout = "~/Views/Shared/_Layout.Management.cshtml";
}

<form method="post" class="form" action="/Management/PaymentList/Add">
	<fieldset id="firstStep">
		<h2 class="app">
	        <strong>Thêm mới thanh toán</strong>
        </h2>
		<div class="errorMessage" data-bind="visible: InvalidateForm" >
			<span class="error">Xin hãy nhập thông tin bên dưới chính xác.</span>
		</div>				
		<div class="title">
			<h3>Thông tin phương thức thanh toán</h3>
		</div>
		<div class="columns">
			<div class="col columnedit">
				<div class="row">
					<label>Tên phương thức:</label>
					<input class="text" type="text" data-bind="value: Name, attr:{maxlength:50}" name="Name" />
                </div>
				<div class="row">
					<label>Mã:</label>
					<input class="text" type="text" data-bind="value: Code, attr:{maxlength: 20}" name="Code" />
                </div>                    
				<div class="row">
					<label>Nhà cung cấp:</label>
					<input class="text" type="text" data-bind="value: Vendor, attr:{maxlength:50}" name="Vendor" />
                </div>
				<div class="row">
					<label>Đường dẫn:</label>
					<input class="text" type="text" style="width:80%" data-bind="value: LinkUrl, attr:{maxlength:500}" name="LinkUrl" />
                </div>
				<div class="row">
					<label>Kích hoạt:</label>
                    <div id="editform" class="groupinput">
					    <input class="text" type="checkbox" data-bind="checked: Active" name="Active" /> &nbsp;&nbsp;
				    </div>
				</div>
			</div>
		</div> 

        <!-- button below -->
		<div class="foot-info">
			<h3 class="centered-wbtn centered-wbtn-bottom save">
  				<span>
  					<a class="btn btn-cancel-page" href="/Management/PaymentList">previous</a>
					<input type="button" class="btn btn-submit-page" data-bind="click: SubmitForm" value="Submit" />
                </span>
			</h3>
		</div>
	</fieldset>
</form>
<script type="text/javascript">
    var data = @(Html.Raw(Json.Encode(Model)));
</script>
<script src="/Scripts/ViewModel/addpayment.js" type="text/javascript"></script>